﻿using System;
using System.Collections.Generic;
using System.Security.Principal;

namespace JSC.Portal.Entities
{
    public partial class PortalUser : BaseEntity, IIdentity
    {
        public PortalUser() : base()
        {
            Roles = new List<Role>();
        }
        
        public string Username
        {
            get;
            set;
        }

        public string Password
        {
            get;
            set;
        }

        public string PasswordSalt
        {
            get;
            set;
        }

        public string Firstname
        {
            get;
            set;
        }

        public string Lastname
        {
            get;
            set;
        }

		public string EMail
        {
            get;
            set;
        }

        public bool IsActive
        {
            get;
            set;
        }

        public DateTime LastLogin
        {
            get;
            set;
        }

        public string LastIP
        {
            get;
            set;
        }

        public IList<Role> Roles
        {
            get;
            set;
        }

        public PortalSite PortalSite
        {
            get;
            set;
        }
    }
}
